/**
 * 根据点位生成图片和收缩倍数
 * 根据不同类型生成点位图片
 * @param data 点位类型
 * @param type 数据
 * @returns {{img: string, imgH: number, imgW: number, scale: number}}
 */
export const getIconByData = (data, type) => {
  // console.log('data', data);
  // console.log('type', type);
  let img = ''
  let imgW = 0
  let imgH = 0
  let scale
  // 入海河流
  if (type === 'dbshui') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    data.lx = data.lx.replace(/\s/g, '')
    switch (data.szlbStr) {
      case 'Ⅰ类':
        img = require('../../assets/images/dbsIcons/sk11.png')
        break
      case 'Ⅱ类':
        img = require('../../assets/images/dbsIcons/sk22.png')
        break
      case 'Ⅲ类':
        img = require('../../assets/images/dbsIcons/sk33.png')
        break
      case 'Ⅳ类':
        img = require('../../assets/images/dbsIcons/sk44.png')
        break
      case 'Ⅴ类':
        img = require('../../assets/images/dbsIcons/sk55.png')
        break
      case '劣Ⅴ类':
        img = require('../../assets/images/dbsIcons/sk66.png')
        break
      default:
        img = require('../../assets/images/dbsIcons/sk77.png')
        break
    }
  } else if (type === 'dbsszzdz') {
    imgW = 15
    imgH = 15
    scale = 15 / 22
    data.lx = data.lx.replace(/\s/g, '')
    // console.log('data.lx', data.lx);
    if (data.lx == '国控') {
      img = require('../../assets/images/dbsIcons/gkcz.png')
    } else if (data.lx == '省控') {
      img = require('../../assets/images/dbsIcons/skcz.png')
    } else if (data.lx == '入境') {
      switch (data.szlbStr) {
        case 'Ⅰ类':
          img = require('../../assets/images/dbsIcons/rjcz1.png')
          break
        case 'Ⅱ类':
          img = require('../../assets/images/dbsIcons/rjcz2.png')
          break
        case 'Ⅲ类':
          img = require('../../assets/images/dbsIcons/rjcz3.png')
          break
        case 'Ⅳ类':
          img = require('../../assets/images/dbsIcons/rjcz4.png')
          break
        case 'Ⅴ类':
          img = require('../../assets/images/dbsIcons/rjcz5.png')
          break
        case '劣Ⅴ类':
          img = require('../../assets/images/dbsIcons/rjcz6.png')
          break
        default:
          img = require('../../assets/images/dbsIcons/rjcz7.png')
          break
      }
    } else if (data.lx == '其他') {
      switch (data.szlbStr) {
        case 'Ⅰ类':
          img = require('../../assets/images/dbsIcons/qtcz1.png')
          break
        case 'Ⅱ类':
          img = require('../../assets/images/dbsIcons/qtcz2.png')
          break
        case 'Ⅲ类':
          img = require('../../assets/images/dbsIcons/qtcz3.png')
          break
        case 'Ⅳ类':
          img = require('../../assets/images/dbsIcons/qtcz4.png')
          break
        case 'Ⅴ类':
          img = require('../../assets/images/dbsIcons/qtcz5.png')
          break
        case '劣Ⅴ类':
          img = require('../../assets/images/dbsIcons/qtcz6.png')
          break
        default:
          img = require('../../assets/images/dbsIcons/qtcz7.png')
          break
      }
    }
  } else if (type === 'WATER') {
    imgW = 12
    imgH = 18
    switch (data.szlbStr) {
      case 'Ⅰ类':
        img = require('../../assets/images/mapIcons/water1.png')
        break
      case 'Ⅱ类':
        img = require('../../assets/images/mapIcons/water2.png')
        break
      case 'Ⅲ类':
        img = require('../../assets/images/mapIcons/water3.png')
        break
      case 'Ⅳ类':
        img = require('../../assets/images/mapIcons/water4.png')
        break
      case 'Ⅴ类':
        img = require('../../assets/images/mapIcons/water5.png')
        break
      case '劣Ⅴ类':
        img = require('../../assets/images/mapIcons/water6.png')
        break
      default:
        img = require('../../assets/images/mapIcons/water7.png')
        break
    }
  } else if (type === 'GIS') { // GIS可视化
    imgW = 12
    imgH = 18
    if (data.mapPopType === 'gkzdz' || data.mapPopType === 'skzdz' || data.mapPopType === 'dbsdm') {
      switch (data.szlbStr) {
        case 'Ⅰ类':
          img = require('../../assets/images/mapIcons/water1.png')
          break
        case 'Ⅱ类':
          img = require('../../assets/images/mapIcons/water2.png')
          break
        case 'Ⅲ类':
          img = require('../../assets/images/mapIcons/water3.png')
          break
        case 'Ⅳ类':
          img = require('../../assets/images/mapIcons/water4.png')
          break
        case 'Ⅴ类':
          img = require('../../assets/images/mapIcons/water5.png')
          break
        case '劣Ⅴ类':
          img = require('../../assets/images/mapIcons/water6.png')
          break
        default:
          img = require('../../assets/images/mapIcons/water7.png')
          break
      }
    } else if (data.mapPopType === 'sswry') {
      if (data.sfcb === '是') {
        img = require('../../assets/images/mapIcons/sswry_cb.png')
      } else {
        switch (data.status) {
          case '1':
            img = require('../../assets/images/mapIcons/sswry_zx.png')
            break
          case '2':
            img = require('../../assets/images/mapIcons/sswry_cb.png')
            break
          case '3':
            img = require('../../assets/images/mapIcons/sswry_yc.png')
            break
          case '4':
            img = require('../../assets/images/mapIcons/sswry_lx.png')
            break
        }
      }
    }
  } else if (type === 'PWK') {
    imgW = 12
    imgH = 12
    if (data.dbqk === '达标') {
      img = require('../../assets/images/mapIcons/PWK_greens.png')
    } else if (data.dbqk === '未达标') {
      img = require('../../assets/images/mapIcons/PWK_reds.png')
    } else if (data.dbqk === '未监测') {
      img = require('../../assets/images/mapIcons/PWK_garys.png')
    } else {
      img = require('../../assets/images/mapIcons/PWK_garys.png')
    }
  } else if (type === 'hcst') {
    imgW = 15
    imgH = 15
    if (data['管控级别'] == '县区') {
      img = require('../../assets/images/mapIcons/hc2x.png')
    } else {
      img = require('../../assets/images/mapIcons/hc1x.png')
    }
  } else if (type === 'hjzl') {
    // 环境质量图标
    imgW = 15
    imgH = 15
    // 近岸海域地图图标
    if (data.data.szkhlb == '一类') {
      img = require('../../assets/images/HY/hjzl1.png')
    } else if (data.data.szkhlb == '二类') {
      img = require('../../assets/images/HY/hjzl2.png')
    } else if (data.data.szkhlb == '三类') {
      img = require('../../assets/images/HY/hjzl3.png')
    } else if (data.data.szkhlb == '四类') {
      img = require('../../assets/images/HY/hjzl4.png')
    } else if (data.data.szkhlb == '劣四类') {
      img = require('../../assets/images/HY/hjzl5.png')
    } else {
      img = require('../../assets/images/HY/hjzl6.png')
    }
  } else if (type === 'rhpwk') {
    // 近岸海域-入海排污口图标
    img = require('../../assets/images/dbsIcons/gkcz.png')
  } else if (type == 'mianlist') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/mapIcons/mianqu.png')
  } else if (type == 'wsgw') {
    imgW = 7
    imgH = 7
    scale = 7 / 14
    img = require('../../assets/images/tubiaos/hyuan.png')
  } else if (type == 'gwxx') {
    imgW = 12
    imgH = 8
    scale = 3 / 22
    img = require('../../assets/images/tubiaos/hyuan6.png')
  } else if (type == 'smd') {
    imgW = 18
    imgH = 6
    scale = 6 / 18
    var lb = data['lb']
    lb = lb.toString()
    if (lb == '手摇木船') {
      img = require('../../assets/images/shuimu2.png')
    } else if (lb == '小型电动捕捞艇') {
      img = require('../../assets/images/shuimu3.png')
    } else if (lb == '中型水母捕捞兜网船') {
      img = require('../../assets/images/shuimu4.png')
    } else {
      img = require('../../assets/images/shuimu1.png')
    }
  } else if (type == 'cqd') {
    imgW = 7
    imgH = 7
    scale = 4 / 7
    img = require('../../assets/images/tubiaos/hyuan2.png')
  } else if (type == 'mdd') {
    imgW = 12
    imgH = 8
    scale = 3 / 22
    img = require('../../assets/images/tubiaos/hyuan3.png')
  } else if (type == 'yyd') {
    imgW = 12
    imgH = 8
    scale = 3 / 22
    img = require('../../assets/images/tubiaos/hyuan6.png')
  } else if (type == 'cqpk') {
    imgW = 7
    imgH = 7
    scale = 7 / 14
    img = require('../../assets/images/tubiaos/hyuan1.png')
  } else if (type == 'b_gy') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk11.png')
  } else if (type == 'b_jz') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk22.png')
  } else if (type == 'b_1xq') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk33.png')
  } else if (type == 'b_2xq') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk44.png')
  } else if (type == 'b_sc') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk55.png')
  } else if (type == 'b_pk') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk66.png')
  } else if (type == 'b_cz') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk77.png')
  } else if (type == 'b_shfxy') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk77.png')
  } else if (type == 'b_wsbz') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk2.png')
  } else if (type == 'bdh_rhpwk') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gk6.png')
  } else if (type == 'bdh_shfxy') {
    imgW = 15
    imgH = 15
    scale = 10 / 22
    img = require('../../assets/images/dbsIcons/gkcz2.png')
  } else if (type === 'jahy_jahy') {
    imgW = 15
    imgH = 15
    scale = 15 / 19
    img = require('../../assets/images/tubiaos/ja1.png')
    // if (data.waterQuality == '一类') {
    //   img = require('../../assets/images/tubiaos/jinan1.png')
    // } else if (data.waterQuality == '二类') {
    //   img = require('../../assets/images/tubiaos/jinan2.png')
    // } else if (data.waterQuality == '三类') {
    //   img = require('../../assets/images/tubiaos/jinan3.png')
    // } else if (data.waterQuality == '四类') {
    //   img = require('../../assets/images/tubiaos/jinan4.png')
    // } else if (data.waterQuality == '劣四类') {
    //   img = require('../../assets/images/tubiaos/jinan5.png')
    // }else{
    //   img = require('../../assets/images/tubiaos/jinan6.png')
    // }
  } else if (type === 'jahy_hsyc') {
    imgW = 15
    imgH = 15
    scale = 15 / 17
    img = require('../../assets/images/tubiaos/ja2.png')
    // if (data.waterQuality == '一类') {
    //   img = require('../../assets/images/tubiaos/haishui1.png')
    // } else if (data.waterQuality == '二类') {
    //   img = require('../../assets/images/tubiaos/haishui2.png')
    // } else if (data.waterQuality == '三类') {
    //   img = require('../../assets/images/tubiaos/haishui3.png')
    // } else if (data.waterQuality == '四类') {
    //   img = require('../../assets/images/tubiaos/haishui4.png')
    // } else if (data.waterQuality == '劣四类') {
    //   img = require('../../assets/images/tubiaos/haishui5.png')
    // }else{
    //   img = require('../../assets/images/tubiaos/haishui6.png')
    // }
  } else if (type === 'jahy_ycwwhy') {
    imgW = 15
    imgH = 15
    scale = 15 / 15
    img = require('../../assets/images/tubiaos/ja3.png')
    // if (data.waterQuality == '一类') {
    //   img = require('../../assets/images/tubiaos/yuchang1.png')
    // } else if (data.waterQuality == '二类') {
    //   img = require('../../assets/images/tubiaos/yuchang2.png')
    // } else if (data.waterQuality == '三类') {
    //   img = require('../../assets/images/tubiaos/yuchang3.png')
    // } else if (data.waterQuality == '四类') {
    //   img = require('../../assets/images/tubiaos/yuchang4.png')
    // } else if (data.waterQuality == '劣四类') {
    //   img = require('../../assets/images/tubiaos/yuchang5.png')
    // }else{
    //   img = require('../../assets/images/tubiaos/yuchang6.png')
    // }
  } else if (type === 'jahy_qhdghy') {
    imgW = 15
    imgH = 15
    scale = 15 / 20
    img = require('../../assets/images/tubiaos/ja4.png')
    // if (data.waterQuality == '一类') {
    //   img = require('../../assets/images/tubiaos/qhd1.png')
    // } else if (data.waterQuality == '二类') {
    //   img = require('../../assets/images/tubiaos/qhd2.png')
    // } else if (data.waterQuality == '三类') {
    //   img = require('../../assets/images/tubiaos/qhd3.png')
    // } else if (data.waterQuality == '四类') {
    //   img = require('../../assets/images/tubiaos/qhd4.png')
    // } else if (data.waterQuality == '劣四类') {
    //   img = require('../../assets/images/tubiaos/qhd5.png')
    // }else{
    //   img = require('../../assets/images/tubiaos/qhd6.png')
    // }
  } else if (type === 'jahy_zdhkhy') {
    imgW = 15
    imgH = 15
    scale = 15 / 18
    img = require('../../assets/images/tubiaos/ja5.png')
    // if (data.waterQuality == '一类') {
    //   img = require('../../assets/images/tubiaos/zd1.png')
    // } else if (data.waterQuality == '二类') {
    //   img = require('../../assets/images/tubiaos/zd2.png')
    // } else if (data.waterQuality == '三类') {
    //   img = require('../../assets/images/tubiaos/zd3.png')
    // } else if (data.waterQuality == '四类') {
    //   img = require('../../assets/images/tubiaos/zd4.png')
    // } else if (data.waterQuality == '劣四类') {
    //   img = require('../../assets/images/tubiaos/zd5.png')
    // }else{
    //   img = require('../../assets/images/tubiaos/zd6.png')
    // }
  } else if (type === 'jahy_ychzbhxqxjc') {
    imgW = 15
    imgH = 15
    scale = 10 / 18
    img = require('../../assets/images/dbsIcons/gk55.png')
  }
  // 北戴河-入海断面图标
  else if (type == 'rhdm') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_01.png')
  }
  // 北戴河-入海口图标
  else if (type == 'rhk') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_09.png')
  }
  // 北戴河-保障监测点
  else if (type == 'bzjcd') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_03.png')
  }
  // 北戴河-浴场监测点图标
  else if (type == 'ycjcd') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_02.png')
  }
  // 北戴河-秦皇岛港海域(港池内)
  else if (type == 'gcn') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_04.png')
  }
  // 北戴河-秦皇岛港海域(港池外
  else if (type == 'gcw') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_05.png')
  }
  // 北戴河-污水处理厂
  else if (type == 'wsclc') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_06.png')
  }
  // 北戴河-雨洪排口
  else if (type == 'yhpk') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tz_08.png')
  }
  // 北戴河-噪声
  else if (type == 'zs') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tb_02.png')
  }
  // 北戴河-大气
  else if (type == 'dq') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tb_03.png')
  }
  // 北戴河-北戴河-近岸海域水质全项
  else if (type === 'jahysjqx') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/hjzl1.png')
  }
  // 北戴河-北戴河-近岸海域水质全项
  else if (type == 'yysyd') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tb_05.png')
  }
  // 北戴河-北戴河-近岸海域水质全项
  else if (type == 'zph') {
    imgW = 7
    imgH = 7
    img = require('../../assets/images/HY/tb_07.png')
  } else if (type === 'zd') {
    // 近岸海域-总氮图标（高度为动态）
    imgW = 3
    imgH = parseFloat(data.nd) / parseFloat(data.wd)
    img = require('../../assets/images/dbsIcons/sk66.png')
  }
  // 污染源
  else if (type === 'ly') {
    switch (data.name) {
      case '入河排污口':
        img = require('../../assets/images/HY/wrytb_01.png')
        break
      case '傍河村庄':
        img = require('../../assets/images/HY/wrytb_02.png')
        break
      case '傍河规上畜禽养殖':
        img = require('../../assets/images/HY/wrytb_03.png')
        break
      case '傍河规下畜禽养殖':
        img = require('../../assets/images/HY/wrytb_04.png')
        break
      case '水产养殖企业':
        img = require('../../assets/images/HY/wrytb_05.png')
        break
      case '污水处理厂':
        img = require('../../assets/images/HY/wrytb_06.png')
        break
      case '沿海涉氮企业':
        img = require('../../assets/images/HY/wrytb_07.png')
        break
      case '闸坝':
        img = require('../../assets/images/HY/wrytb_08.png')
        break
      case '人工湿地':

        img = require('../../assets/images/HY/wrytb_09.png')
        break
      case '河湖缓冲带':
        img = require('../../assets/images/HY/wrytb_10.png')
        break
      default:
        // img = require('../../assets/images/HY/wryfl_01.png')
        break
    }
  }
  const pictureMarkerSymbol = {
    img: img, imgW: imgW, imgH: imgH, scale: scale
  }
  return pictureMarkerSymbol
}

/**
 * 根据不同类型生成图例
 * @param type 点位类型
 * @param data 数据
 */
export const getTuLiByData = (type, data) => {
  let tuli = []

  if (type === 'WATER') {
    tuli = [{ label: '一类(优)', value: require('../../assets/images/HY/jahy1.png') }, {
      label: '二类(良好)', value: require('../../assets/images/HY/jahy2.png')
    }, { label: '三类(一般)', value: require('../../assets/images/HY/jahy3.png') }, {
      label: '四类(差)', value: require('../../assets/images/HY/jahy4.png')
    }, { label: '劣四类(极差)', value: require('../../assets/images/HY/jahy5.png') }]
  } else if (type === 'zdz') { // 自动监测站
    tuli = [{ label: '国控测站', value: require('../../assets/images/dbsIcons/gkcz.png') }, {
      label: '省控测站', value: require('../../assets/images/dbsIcons/skcz.png')
    }]
  } else if (type === 'WATERdbs') { // 水环境
    tuli = []
  } else if (type === 'zd') { // 入海河流-总氮
    tuli = [{ label: '总氮', value: require('../../assets/images/dbsIcons/sk66.png') }

    ]
  } else if (type === 'PWK') { //
    tuli = [{ label: '达标', value: require('../../assets/images/mapIcons/PWK_green.png') }, {
      label: '未达标', value: require('../../assets/images/mapIcons/PWK_red.png')
    }, { label: '未监测', value: require('../../assets/images/mapIcons/PWK_gary.png') }]
  } else if (type === 'WRY') { // 污染源-陆源
    tuli = [{ label: '入河排污口', value: require('../../assets/images/HY/wrytb_01.png') }, {
      label: '傍河村庄', value: require('../../assets/images/HY/wrytb_02.png')
    }, { label: '规上畜禽养殖厂', value: require('../../assets/images/HY/wrytb_03.png') }, {
      label: '规下畜禽养殖户', value: require('../../assets/images/HY/wrytb_04.png')
    }, { label: '水产养殖企业', value: require('../../assets/images/HY/wrytb_05.png') }, {
      label: '污水处理厂', value: require('../../assets/images/HY/wrytb_06.png')
    }, { label: '涉氮企业', value: require('../../assets/images/HY/wrytb_07.png') }, {
      label: '闸坝', value: require('../../assets/images/HY/wrytb_08.png')
    }, { label: '人工湿地', value: require('../../assets/images/HY/wrytb_09.png') }, {
      label: '河湖缓冲带', value: require('../../assets/images/HY/wrytb_10.png')
    }]
  } else if (type === 'BsDH') { // 污染源-陆源
    tuli = [{ label: '工业企业', value: require('../../assets/images/dbsIcons/gk11.png') }, {
      label: '污水处理厂', value: require('../../assets/images/dbsIcons/gk22.png')
    }, { label: '规上畜禽养殖', value: require('../../assets/images/dbsIcons/gk33.png') }, {
      label: '规下畜禽养殖', value: require('../../assets/images/dbsIcons/gk44.png')
    }, { label: '水产养殖', value: require('../../assets/images/dbsIcons/gk55.png') }, {
      label: '傍河村庄', value: require('../../assets/images/dbsIcons/gk77.png')
    }, { label: '入河排污口', value: require('../../assets/images/dbsIcons/gk66.png') }, {
      label: '入海排污口', value: require('../../assets/images/dbsIcons/gk6.png')
    }, { label: '涉海风险源', value: require('../../assets/images/dbsIcons/gkcz2.png') }]
  } else if (type === 'BDH') { // 北戴河
    tuli = []
  } else if (type === 'MLHW') { // 污染源
    tuli = []
  } else if (type === 'WRYztqk') { // 污染源
    tuli = [{
      label: '工业企业', value: require('../../assets/images/mapIcons/wryjc1.png')
    }, {
      label: '集中式污水处理设施', value: require('../../assets/images/mapIcons/wryjc2.png')
    }, {
      label: '规模化畜禽养殖场', value: require('../../assets/images/mapIcons/wryjc3.png')
    }, { label: '规模化水产养殖场', value: require('../../assets/images/mapIcons/wryjc4.png') }]
  } else if (type === 'WRYgyqy') { // 污染源
    tuli = [{ label: '工业企业', value: require('../../assets/images/mapIcons/wryjc1.png') }, {
      label: '在线监测', value: require('../../assets/images/mapIcons/sswry_zxm.png')
    }]
  } else if (type === 'WRYjzs') { // 污染源
    tuli = [{
      label: '集中式污水处理设施', value: require('../../assets/images/mapIcons/wryjc2.png')
    }, { label: '在线监测', value: require('../../assets/images/mapIcons/sswry_zxm.png') }]
  } else if (type === 'WRYxqyzc') { // 污染源
    tuli = [{ label: '规模化畜禽养殖场', value: require('../../assets/images/mapIcons/wryjc3.png') }]
  } else if (type === 'WRYscyzc') { // 污染源
    tuli = [{ label: '规模化水产养殖场', value: require('../../assets/images/mapIcons/wryjc4.png') }]
  } else if (type === 'WSC') { // 污水厂
    tuli = [{ label: '污水厂在线监测', value: require('../../assets/images/mapIcons/sswry_zx.png') }]
  } else if (type === 'hcst') { // 黑臭水体
    tuli = [{ label: '地市管控', value: require('../../assets/images/mapIcons/hc1.png') }, {
      label: '区县管控', value: require('../../assets/images/mapIcons/hc2.png')
    }]
  } else if (type === 'WRFZ') { // 污染防治
    tuli = [{ label: '污染防治项目', value: require('../../assets/images/mapIcons/wrfzxm.png') }, {
      label: '违规项目', value: require('../../assets/images/mapIcons/wgxm.png')
    }]
  } else if (type === 'QT') { // 其他
    tuli = [{ label: '黑臭水体', value: require('../../assets/images/mapIcons/hcst.png') }, {
      label: '农村生活污水', value: require('../../assets/images/mapIcons/ncshws.png')
    }, { label: '雨污分流', value: require('../../assets/images/mapIcons/ywfl.png') }, {
      label: '水源保护区', value: require('../../assets/images/mapIcons/sybhq.png')
    }]
  } else if (type === 'GIS') { // 其他
    if (data && data.length !== 0) {
      if (data.includes('gkzdz') || data.includes('skzdz') || data.includes('dbsdm')) {
        tuli.push({ label: 'Ⅰ类水', value: require('../../assets/images/mapIcons/water1.png') }, {
          label: 'Ⅱ类水', value: require('../../assets/images/mapIcons/water2.png')
        }, { label: 'Ⅲ类水', value: require('../../assets/images/mapIcons/water3.png') }, {
          label: 'Ⅳ类水', value: require('../../assets/images/mapIcons/water4.png')
        }, { label: 'Ⅴ类水', value: require('../../assets/images/mapIcons/water5.png') }, {
          label: '劣Ⅴ类水', value: require('../../assets/images/mapIcons/water6.png')
        }, { label: '无数据', value: require('../../assets/images/mapIcons/water7.png') })
      }
      if (data.includes('sswry')) {
        tuli.push({ label: '在线', value: require('../../assets/images/mapIcons/sswry_zx.png') }, {
          label: '超标', value: require('../../assets/images/mapIcons/sswry_cb.png')
        }, { label: '异常', value: require('../../assets/images/mapIcons/sswry_yc.png') }, {
          label: '离线', value: require('../../assets/images/mapIcons/sswry_lx.png')
        })
      }
    } else {
      tuli = []
    }
  }
  return tuli
}
